using UnityEngine;

namespace VoxelGame.NPC
{
	public class ForceOffset : MonoBehaviour
	{
		[SerializeField]
		private Vector3 _offset;

		private Vector3 _initialPosition;

		private void Awake()
		{
			_initialPosition = base.transform.localPosition;
		}

		private void LateUpdate()
		{
			base.transform.localPosition = _initialPosition + _offset;
		}
	}
}
